package com.misty.common.constants;

public enum ResultEnum {
    SUCCESS(0,"成功"),
    NO_DATA(1,"无数据"),
    FAILURE(-1,"失败"),
    UN_LOGIN(401,"未登录"),
    NO_PERMISSION(403,"权限不足"),
    VALIDATE_FAILED(404,"检验失败");

    private int value;
    private String describe;

    ResultEnum(int value, String describe) {
        this.value = value;
        this.describe = describe;
    }

    public int getValue() {
        return value;
    }

    public void setValue(int value) {
        this.value = value;
    }


    public String getDescribe() {
        return describe;
    }

    public void setDescribe(String describe) {
        this.describe = describe;
    }

}
